package com.sc.nft.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import com.sc.nft.entity.DaoGasDetail;
import com.sc.nft.mapper.DaoGasDetailMapper;
import  com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

/**
 * DaoGAS明细表(sc_dao_gas_detail)数据DAO
 *
 * @author zxy
 * @since 2023-05-17 15:59:31
 * @description 活动推荐表
 */
@Slf4j
@Repository
public class DaoGasDetailDao extends ServiceImpl<DaoGasDetailMapper, DaoGasDetail> {
    public Page<DaoGasDetail> getPage(Long daoId, Integer type, Page page) {
        return lambdaQuery().eq(DaoGasDetail::getDaoId, daoId).eq(DaoGasDetail::getType, type).page(page);
    }
}